export default {
  name: 'FieldItemButton',
  props: {
    prop: Object,
  },
  data() {
    return {
      ...this.prop,
    };
  },
  methods: {
    submit() {
      if (this.funcName) {
        this.$emit('accept', { funcName: this.funcName, funcArguments: this.funcArguments });
      }
    },
  },
  render() {
    return (
      <van-button
        class="mb-2"
        round
        block
        type="primary"
        plain={this.plain}
        native-type={this.nativeType}
        onClick={this.submit}
      >
        {this.buttonText}
      </van-button>
    );
  },
};
